package com.labmanager.JsonModule;

import com.fasterxml.jackson.annotation.JsonProperty;

public class ResponseBase {
	@JsonProperty("status")
	private int status;
	@JsonProperty("message")
	private String message;
	@JsonProperty("data")
	private Object data;
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	public Object getData() {
		return data;
	}
	public void setData(Object data) {
		this.data = data;
	}
	
	public void setError(int status, String message) {
		this.status = status;
		this.message = message;
	}
	
	public ResponseBase() {
		// TODO Auto-generated constructor stub
		status = 0;
		message = "成功";
		data = null;
	}
}
